<template>
  <div>home</div>
  <button @click="handleClick">click</button>
  <router-link to="/about">about</router-link>
  <button @click="handleClick2">登陆</button>
</template>

<script setup>
import { ref } from 'vue'
import { getUserInfo } from '@/utils/api'
const handleClick = async() => {
  await window.ipcRenderer.invoke('open-win', 'about')
}
const handleClick2 = async() => {
  const res = await getUserInfo()
  console.log(res);
}
</script>

<style scoped>

</style>